<!--conf
<sample>
              <stdduct version="1.5" edition="std"/>
                     <modifications>
                            <modified date="070101"/>
                     </modifications>
               </sample>
 --> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title>Multiline cells</title>
	
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="../../../codebase/dhtmlx.css"/>
	<script src="../../../codebase/dhtmlx.js"></script>
</head>
<style>
    .not_m_line{
    	white-space:nowrap; overflow:hidden;
    }
</style>
<body>
	<H1>Multiline cells</H1>
	<p>The sample below demonstrates multiline cells in grid.<br/> 
	enableMultiline method makes all grid multiline. But you have possibility to set some rows/columns with fixed height (not as multiline) using custom code like in this sample. Cells in the third column are not multiline.</p> 
	
	<div id="gridbox" style="width:600px; height:250px; background-color:white;"></div>
	
<script>
	mygrid = new dhtmlXGridObject('gridbox');
	mygrid.setImagePath("../../../codebase/imgs/");
	mygrid.setHeader("Sales,Book Title,Author,Price,In Store,Shipping,Bestseller,Date of Publication");
	mygrid.setInitWidths("50,80,100,80,80,80,80,200")
	mygrid.setColAlign("right,left,left,right,center,left,center,center")
	mygrid.setColTypes("dyn,edtxt,ed,price,ch,co,ra,ro");
	mygrid.enableMultiline(true)
	mygrid.init();
	mygrid.setSkin("dhx_skyblue")
	mygrid.loadXML("../common/grid_ml_16_rows_columns_manipulations.xml",function(){
		mygrid.forEachRow(function(id){
			mygrid.cells(id,2).cell.className='not_m_line';
		})
	});
</script>

</body>
</html>
